package com.baobao_jk.tutorialmod.items.food;

import com.baobao_jk.tutorialmod.Main;
import com.baobao_jk.tutorialmod.init.ModItems;
import com.baobao_jk.tutorialmod.util.IHasModel;

import net.minecraft.item.ItemFood;

public class FoodBase extends ItemFood implements IHasModel{

    public FoodBase(String name, int amount, float saturation, boolean isAnimalFood) {

        super(amount, saturation, isAnimalFood);
        setUnlocalizedName(name); //未本地化的名称
        setRegistryName(name); //注册的名称
        setCreativeTab(Main.tutorialtab); //标签栏
        ModItems.ITEMS.add(this); //添加item注册
    }

    @Override
    public void registerModels() {
        Main.proxy.registerItemRenderer(this, 0, "inventory"); //代理注册
    }

}
